package com.pandora.credit.mongo.dao;

import com.pandora.credit.mongo.entity.MongoMessage;

import java.util.List;

/**
 * @author developer
 */
public interface MongoMessageDao {
    /**
     * selectByIsSent
     * @param isSent isSent
     * @return MongoMessageList
     */
    public List<MongoMessage> selectByIsSent(int isSent);

    /**
     * getFromId
     * @param id id
     * @return MongoMessage
     */
    public MongoMessage getFromId(long id);

    /**
     * insert
     * @param message message
     */
    public void insert(MongoMessage message);
}
